
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>oneplatform企业级开发平台 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="passport.html" />
    
    
    <link rel="prev" href="confcenter.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    概要
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../architecture.html">
            
                <a href="../architecture.html">
            
                    
                    总体架构
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../quick-start.html">
            
                <a href="../quick-start.html">
            
                    
                    快速开始
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="confcenter.html">
            
                <a href="confcenter.html">
            
                    
                    配置中心
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.2" data-path="oneplatform.html">
            
                <a href="oneplatform.html">
            
                    
                    oneplatform企业级开发平台
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="passport.html">
            
                <a href="passport.html">
            
                    
                    统一认证平台
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../jeesuite-lib.html">
            
                <a href="../jeesuite-lib.html">
            
                    
                    jeesuite-libs使用文档
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../jeesuite-libs/common.html">
            
                <a href="../jeesuite-libs/common.html">
            
                    
                    common模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../jeesuite-libs/common2.html">
            
                <a href="../jeesuite-libs/common2.html">
            
                    
                    common2模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../jeesuite-libs/spring.html">
            
                <a href="../jeesuite-libs/spring.html">
            
                    
                    Spring模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../jeesuite-libs/mybatis.html">
            
                <a href="../jeesuite-libs/mybatis.html">
            
                    
                    mybatis模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../jeesuite-libs/cache.html">
            
                <a href="../jeesuite-libs/cache.html">
            
                    
                    cache模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../jeesuite-libs/kafka.html">
            
                <a href="../jeesuite-libs/kafka.html">
            
                    
                    kafka模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="../jeesuite-libs/scheduler.html">
            
                <a href="../jeesuite-libs/scheduler.html">
            
                    
                    scheduler模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="../jeesuite-libs/filesystem.html">
            
                <a href="../jeesuite-libs/filesystem.html">
            
                    
                    filesystem模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="../jeesuite-libs/rest.html">
            
                <a href="../jeesuite-libs/rest.html">
            
                    
                    restAPI模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10" data-path="../jeesuite-libs/springboot-starter.html">
            
                <a href="../jeesuite-libs/springboot-starter.html">
            
                    
                    springboot-starter模块
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../integration.html">
            
                <a href="../integration.html">
            
                    
                    系统集成
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../integration/confcenter.html">
            
                <a href="../integration/confcenter.html">
            
                    
                    集成配置中心
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../integration/passport.html">
            
                <a href="../integration/passport.html">
            
                    
                    集成认证中心
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../base-env-install.html">
            
                <a href="../base-env-install.html">
            
                    
                    附：基础环境搭建
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >oneplatform企业级开发平台</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="&#x57FA;&#x7840;&#x73AF;&#x5883;&#x5B89;&#x88C5;&#x6700;&#x597D;&#x662F;linux&#x73AF;&#x5883;&#xFF0C;&#x6CA1;&#x6709;&#x8BF7;&#x5B89;&#x88C5;&#x865A;&#x62DF;&#x673A;">&#x57FA;&#x7840;&#x73AF;&#x5883;&#x5B89;&#x88C5;(&#x6700;&#x597D;&#x662F;Linux&#x73AF;&#x5883;&#xFF0C;&#x6CA1;&#x6709;&#x8BF7;&#x5B89;&#x88C5;&#x865A;&#x62DF;&#x673A;)</h3>
<ul>
<li>mysql</li>
<li>kafka</li>
<li>zookeeper</li>
<li>redis </li>
</ul>
<p>&#x4F7F;&#x7528;docker&#xFF1A;&#x6784;&#x5EFA;&#x4E86;&#x4E00;&#x4E2A;&#x57FA;&#x7840;&#x73AF;&#x5883;docker&#xFF08;jdk8&#xFF0C;redis&#xFF0C;kafka&#xFF0C;zookeeper&#xFF09;</p>
<pre><code>mkdir -p /datas/redis
mkdir -p /datas/kafka
mkdir -p /datas/zookeeper
mkdir -p /datas/logs
mkdir -p /datas/config
# /datas/config&#x6587;&#x4EF6;&#x5939; &#x5305;&#x542B;&#xFF1A;kafka.properties,zookeeper.properties,redis.conf
#&#x62C9;&#x53D6;&#x5E76;&#x8FD0;&#x884C;
docker run -it --net=&quot;host&quot; -p 6379:6379 -p 2181:2181 -p 9092:9092 -m 1024M --memory-swap=1024M -v /datas:/datas vakinge/centos_dev
</code></pre><h4 id="&#x6CE8;">&#x6CE8;</h4>
<ol>
<li>mysql&#x914D;&#x7F6E;&#x7684;&#x7684;&#x8D26;&#x53F7;&#x5BC6;&#x7801;&#x4E3A;&#xFF1A;root/123456,redis&#x5BC6;&#x7801;:123456</li>
</ol>
<h3 id="clone&#x9879;&#x76EE;&#x5230;&#x672C;&#x5730;">clone&#x9879;&#x76EE;&#x5230;&#x672C;&#x5730;</h3>
<p>git clone <a href="https://gitee.com/vakinge/oneplatform.git" target="_blank">https://gitee.com/vakinge/oneplatform.git</a></p>
<h3 id="&#x521B;&#x5EFA;&#x6570;&#x636E;&#x5E93;">&#x521B;&#x5EFA;&#x6570;&#x636E;&#x5E93;</h3>
<pre><code>CREATE DATABASE IF NOT EXISTS `oneplatform` DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
</code></pre><h3 id="&#x521B;&#x5EFA;&#x8868;">&#x521B;&#x5EFA;&#x8868;</h3>
<p>&#x5206;&#x522B;&#x5BFC;&#x5165;<code>oneplatform-platform/db.sql</code>&#x548C;<code>oneplatform-services/common-service/db.sql</code></p>
<h3 id="&#x914D;&#x7F6E;host">&#x914D;&#x7F6E;host</h3>
<pre><code>127.0.0.1 www.oneplatform.com
</code></pre><h3 id="&#x914D;&#x7F6E;nginx">&#x914D;&#x7F6E;Nginx</h3>
<pre><code>  server {
        listen       80;
        server_name  www.oneplatform.com;

        charset utf-8;

        location / {
            #&#x8FD9;&#x91CC;&#x6539;&#x6210;&#x4F60;&#x9879;&#x76EE;&#x672C;&#x5730;&#x8DEF;&#x5F84;
            root /Users/jiangwei/project/oneplatform/oneplatform-ui-layui;
            index index.html;
        }

        location /api {
          proxy_pass http://127.0.0.1:8001/api;
          proxy_set_header Host $host;
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }
    }
</code></pre><h3 id="&#x914D;&#x7F6E;&#x5B8C;&#x6210;&#xFF0C;&#x542F;&#x52A8;nginx">&#x914D;&#x7F6E;&#x5B8C;&#x6210;&#xFF0C;&#x542F;&#x52A8;Nginx</h3>
<h3 id="&#x542F;&#x52A8;&#x57FA;&#x7840;&#x5E73;&#x53F0;&#x670D;&#x52A1;">&#x542F;&#x52A8;&#x57FA;&#x7840;&#x5E73;&#x53F0;&#x670D;&#x52A1;</h3>
<p> &#x5165;&#x53E3;&#xFF1A;oneplatform-platform/src/main/java/com/oneplatform/platform/ApplicationStarter.java</p>
<h3 id="&#x542F;&#x52A8;common&#x670D;&#x52A1;">&#x542F;&#x52A8;common&#x670D;&#x52A1;</h3>
<p> &#x5165;&#x53E3;&#xFF1A;oneplatform-services/common-service/src/main/java/com/oneplatform/common/ApplicationStarter.java</p>
<blockquote>
<p>&#x542F;&#x52A8;&#x5B8C;&#x6210;&#xFF0C;&#x8BBF;&#x95EE;&#xFF1A;<a href="http://www.oneplatform.com" target="_blank">http://www.oneplatform.com</a> </p>
</blockquote>
<hr>
<h3 id="&#x9ED8;&#x8BA4;&#x4F7F;&#x7528;&#x963F;&#x91CC;&#x4E91;&#x90E8;&#x7F72;&#x7684;&#x914D;&#x7F6E;&#x4E2D;&#x5FC3;&#x548C;&#x6CE8;&#x518C;&#x4E2D;&#x5FC3;&#xFF0C;&#x5982;&#x679C;&#x9700;&#x8981;&#x672C;&#x5730;&#x542F;&#x52A8;">&#x9ED8;&#x8BA4;&#x4F7F;&#x7528;&#x963F;&#x91CC;&#x4E91;&#x90E8;&#x7F72;&#x7684;&#x914D;&#x7F6E;&#x4E2D;&#x5FC3;&#x548C;&#x6CE8;&#x518C;&#x4E2D;&#x5FC3;&#xFF0C;&#x5982;&#x679C;&#x9700;&#x8981;&#x672C;&#x5730;&#x542F;&#x52A8;</h3>
<h4 id="eureka&#x670D;&#x52A1;">eureka&#x670D;&#x52A1;</h4>
<ol>
<li>&#x6D4B;&#x8BD5;&#x76F4;&#x63A5;&#x5728;IDE&#x901A;&#x8FC7;main&#x65B9;&#x6CD5;&#x542F;&#x52A8;&#x5373;&#x53EF;&#xFF0C;&#x5165;&#x53E3;&#xFF1A;springcloud-eureka/src/main/java/com/jeesuite/springcloud/EurekaServerApplication.java</li>
<li>&#x542F;&#x52A8;&#x6210;&#x529F;&#x3002;&#x901A;&#x8FC7;&#x8BBF;&#x95EE;&#xFF1A;<a href="http://127.0.0.1:19991" target="_blank">http://127.0.0.1:19991</a> &#x8BBF;&#x95EE;&#x3002;&#x8D26;&#x53F7;&#x5BC6;&#x7801;&#xFF1A;oneplatform/oneplatform2018</li>
</ol>
<h4 id="&#x914D;&#x7F6E;&#x4E2D;&#x5FC3;">&#x914D;&#x7F6E;&#x4E2D;&#x5FC3;</h4>
<p><a href="http://www.jeesuite.com/docs/quickstart/confcenter.html" target="_blank">&#x914D;&#x7F6E;&#x4E2D;&#x5FC3;&#x90E8;&#x7F72;&#x6587;&#x6863;</a> </p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="confcenter.html" class="navigation navigation-prev " aria-label="Previous page: 配置中心">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="passport.html" class="navigation navigation-next " aria-label="Next page: 统一认证平台">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"oneplatform企业级开发平台","level":"1.2.2","depth":2,"next":{"title":"统一认证平台","level":"1.2.3","depth":2,"path":"quickstart/passport.md","ref":"quickstart/passport.md","articles":[]},"previous":{"title":"配置中心","level":"1.2.1","depth":2,"path":"quickstart/confcenter.md","ref":"quickstart/confcenter.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"quickstart/oneplatform.md","mtime":"2018-05-04T10:29:51.033Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-05-04T10:30:11.187Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

